interface ListReq {
  name?: string;
  namespace?: string;
}

interface ListResp {
  total: number;
  items: Service[];
}

interface ServiceItem {
  metadata: {
    name: string;
    namespace: string;
    creationTimestamp: string;
  };
  spec: {
    selector: { app: string };
    clusterIP: string;
    ports: {
      port: number;
      nodePort: number;
      targetPort: number;
      protocol: string;
    }[];
    type: string;
  };
  status: {};
}
interface Service {
  service_name: string;
  namespace: string;
  create_time: string;
  service: ServiceItem;
}

interface DeleteReq {
  name: string;
  namespace: string;
}

export default Service;
export { Service, ListReq, ListResp, ServiceItem, DeleteReq };
